<template>
  <div class="cont">
    <div class="line">
      <div v-for="n in 12" :key="n"></div>
    </div>
    <div class="circle"></div>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { useStore } from "vuex";

const store = useStore();

// No reactive data needed for this component
</script>

<style scoped>
.cont {
  width: 25px;
  height: 25px;
  position: relative;
}

.line div {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 20px;
}

.line div:before,
.line div:after {
  content: "";
  display: block;
  height: 50%;
  background: #009cda;
  border-radius: 5px;
}

/* Set rotation angles for each line */
.line div:nth-child(1) {
  transform: rotate(0deg);
}
.line div:nth-child(2) {
  transform: rotate(15deg);
}
.line div:nth-child(3) {
  transform: rotate(30deg);
}
.line div:nth-child(4) {
  transform: rotate(45deg);
}
.line div:nth-child(5) {
  transform: rotate(60deg);
}
.line div:nth-child(6) {
  transform: rotate(75deg);
}
.line div:nth-child(7) {
  transform: rotate(90deg);
}
.line div:nth-child(8) {
  transform: rotate(105deg);
}
.line div:nth-child(9) {
  transform: rotate(120deg);
}
.line div:nth-child(10) {
  transform: rotate(135deg);
}
.line div:nth-child(11) {
  transform: rotate(150deg);
}
.line div:nth-child(12) {
  transform: rotate(165deg);
}

.circle {
  position: absolute;
  left: -15%;
  top: 35%;
  margin: -9px 0 0 -9px;
  background: #ffefce;
  border-radius: 100%;
}

/* Animation definition */
@keyframes load {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Set animations with delays */
.line div:nth-child(1):before {
  animation: load 1.2s linear 0s infinite;
}
.line div:nth-child(2):before {
  animation: load 1.2s linear 0.05s infinite;
}
.line div:nth-child(3):before {
  animation: load 1.2s linear 0.1s infinite;
}
.line div:nth-child(4):before {
  animation: load 1.2s linear 0.15s infinite;
}
.line div:nth-child(5):before {
  animation: load 1.2s linear 0.2s infinite;
}
.line div:nth-child(6):before {
  animation: load 1.2s linear 0.25s infinite;
}
.line div:nth-child(7):before {
  animation: load 1.2s linear 0.3s infinite;
}
.line div:nth-child(8):before {
  animation: load 1.2s linear 0.35s infinite;
}
.line div:nth-child(9):before {
  animation: load 1.2s linear 0.4s infinite;
}
.line div:nth-child(10):before {
  animation: load 1.2s linear 0.45s infinite;
}
.line div:nth-child(11):before {
  animation: load 1.2s linear 0.5s infinite;
}
.line div:nth-child(12):before {
  animation: load 1.2s linear 0.55s infinite;
}

.line div:nth-child(1):after {
  animation: load 1.2s linear 0.6s infinite;
}
.line div:nth-child(2):after {
  animation: load 1.2s linear 0.65s infinite;
}
.line div:nth-child(3):after {
  animation: load 1.2s linear 0.7s infinite;
}
.line div:nth-child(4):after {
  animation: load 1.2s linear 0.75s infinite;
}
.line div:nth-child(5):after {
  animation: load 1.2s linear 0.8s infinite;
}
.line div:nth-child(6):after {
  animation: load 1.2s linear 0.85s infinite;
}
.line div:nth-child(7):after {
  animation: load 1.2s linear 0.9s infinite;
}
.line div:nth-child(8):after {
  animation: load 1.2s linear 0.95s infinite;
}
.line div:nth-child(9):after {
  animation: load 1.2s linear 1s infinite;
}
.line div:nth-child(10):after {
  animation: load 1.2s linear 1.05s infinite;
}
.line div:nth-child(11):after {
  animation: load 1.2s linear 1.1s infinite;
}
.line div:nth-child(12):after {
  animation: load 1.2s linear 1.15s infinite;
}
</style>
